package com.ming.mapper;


import com.ming.pojo.Owner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OwnerMapper {

    /**
     * 添加业主信息
     * @param owner
     */
    void addOwner(Owner owner);

    /**
     * 删除业主信息
     * @param ownerId
     */
    void deleteOwner(String ownerId);

    /**
     * 业主信息列表
     * @return
     */
    List<Owner> ownerList();

    /**
     * 通过业主姓名查询信息
     * @param name
     * @return
     */
    List<Owner> ownerListByName(String name);

    /**
     * 通过业主id查询信息
     * @param ownerId
     * @return
     */
    Owner ownerById(String ownerId);

    /**
     * 根据id修改业主信息
     * @param owner
     */
    void updateOwner(Owner owner);
}
